﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsSPersonnelEfficiency")]
    public class MsSPersonnelEfficiency
    {
        [Key]
        public Guid MsPersonnelEfficiencyGuid { get; set; }

        /// <summary>
        /// 年
        /// </summary>
        public int Year { get; set; }

        /// <summary>
        /// 月
        /// </summary>
        public int Month { get; set; }

        /// <summary>
        /// 日
        /// </summary>
        public int Day { get; set; }

        /// <summary>
        /// 周
        /// </summary>
        public int Week { get; set; }

        /// <summary>
        /// 走信息
        /// </summary>
        public string WeekInfo { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public Guid UserGuid { get; set; }

        /// <summary>
        /// 公司Id
        /// </summary>
        public Guid? CompanyGuid { get; set; }

        /// <summary>
        /// 项目Id
        /// </summary>
        public Guid? ProjectGuid { get; set; }

        /// <summary>
        /// 户型图Id
        /// </summary>
        public Guid HouseMapId { get; set; }

        /// <summary>
        /// 项目标号
        /// </summary>
        public string ProjectNum { get; set; }

        /// <summary>
        /// 楼栋编号
        /// </summary>
        public string BuildingNum { get; set; }

        /// <summary>
        /// 楼层编号
        /// </summary>
        public string FloorNum { get; set; }

        /// <summary>
        /// 任务属性
        /// </summary>
        public string TaskProperty { get; set; }

        /// <summary>
        /// 任务类型
        /// </summary>
        public string TaskTypeName { get; set; }

        /// <summary>
        /// 测量阶段
        /// </summary>
        public string ProjectStandardName { get; set; }

        /// <summary>
        /// 任务Id
        /// </summary>
        public Guid TaskId { get; set; }

        /// <summary>
        /// 已完成的站点数量
        /// </summary>
        public int CompletedPointCount { get; set; }

        [Column(TypeName = "uuid", Order = 1000)]
        public Guid CreatedBy { get; set; }

        [Column(TypeName = "timestamp(0)", Order = 1001)]
        public DateTime CreatedDate { get; set; }

        [Column(TypeName = "uuid", Order = 1002)]
        public Guid LastUpdatedBy { get; set; }

        [Column(TypeName = "timestamp(0)", Order = 1003)]
        public DateTime LastUpdatedDate { get; set; }
    }
}
